core: Add a function creating an archive-z2 content stream
authorKrzesimir Nowak <krzesimir@kinvolk.io>
Mon, 23 May 2016 11:28:04 +0000 (13:28 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 26 May 2016 16:53:08 +0000 (16:53 +0000)
commit569e43c280d6b09b5a683c5b4ea41a448f1f7ce2
tree0c91cb805b7db00c5222ec24b4c3ce4b9f20bbfe
parent6bf94ec2335cd34e6c0b729bc836388732621906
core: Add a function creating an archive-z2 content stream

It is quite similar to the already existing
ostree_raw_file_to_content_stream function, so I factored the common
part to a separate function. The difference is that we cannot report
the size of the resulting stream.

Can be useful for serving a "bare" repository as a faked "archive-z2"
repository.

Closes: #308
Approved by: cgwalters
apidoc/ostree-sections.txt
src/libostree/libostree.sym
src/libostree/ostree-core.c
src/libostree/ostree-core.h
tests/test-basic-c.c